package com.mall.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.bean.model.User;
import com.mall.dao.UserMapper;
import com.mall.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>  implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectByName(String userNameOrPhone) {
        return userMapper.selectByName(userNameOrPhone);
    }
}
